package com.javafactroy.kunlong.codefactroy.service.codetemplate;

import com.javafactroy.kunlong.base.metadata.valueobj.MetadataTable;
import com.javafactroy.kunlong.codefactroy.iface.ICodeTemplate;
import com.javafactroy.kunlong.codefactroy.service.base.FileTemplateFactroy;
import com.javafactroy.kunlong.codefactroy.service.stringtemplate.StringTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CodeTemplate implements ICodeTemplate {

    String text;
    @Autowired
    FileTemplateFactroy fileTemplateFactroy;

    @Autowired
    StringTemplate stringTemplate;

    public String make() {

        iniCode();
        text = readFile();
        text = stringTemplate.parse(text);
        writeFile(text);
        return text;
    }

    public String iniCode() {


        return "";
    }

    public String readFile() {


        return "";
    }

    public void writeFile(String content) {


    }

    public void makeEntityProps(MetadataTable tmetadataTable){

    }


}
